Skip to main content
Version: 3.x.x

CacheValueType


import { CacheValueType } from "@hyper-fetch/core"

Description

Defined in cache/cache.types.ts:37

Preview

type CacheValueType<Response,Error,AdapterType> = ResponseReturnType<Response, Error, AdapterType> & ResponseDetailsType & { cacheTime: number; clearKey: string; garbageCollection: number };

Structure

{
additionalData: T extends BaseAdapterType<any, any, any, infer A, any> ? A : never | null;
data: GenericDataType | null;
error: GenericErrorType | null;
isSuccess: boolean;
status: T extends BaseAdapterType<any, any, infer S, any, any> ? S : never | null;
isCanceled: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
cacheTime: number;
clearKey: string;
garbageCollection: number;
}